#ifndef __RAND_STRING_H__
#define __RAND_STRING_H__

#define START_C '0'
#define END_C 'z'

char* rand_string( unsigned len );

char** rand_string_list( unsigned num, unsigned minlen, unsigned maxlen );

void del_rand_list( char** list );

class RandString
{
public:
	static const char startchar='0';
	static const char endchar='z';
	RandString( int length );
	const std::string& getString() { return str; }
private:
	std::string str;
};

class RandStringList
{
public:
	RandStringList( int number, int minlength, int maxlength );
	const std::list<std::string>& getStringList() { return strlist; }
private:
	std::list<std::string> strlist;
};

#endif // __RAND_STRING_H__